package com.ytf.core.web.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author YTF
 * @since 2025-05-20
 */
@Schema(name = "PermissionVo", description = "权限信息视图对象")
@Data
public class PermissionVo {

    /**
     * 主键
     */
    @Schema(description = "权限ID", example = "1234567890")
    private String id;

    /**
     * 权限标识（如user:create）
     */
    @Schema(description = "权限标识", example = "user:create")
    private String permKey;

    /**
     * 资源类型（如user/order）
     */
    @Schema(description = "资源类型", example = "user")
    private String resourceType;

    /**
     * 操作类型（如create/delete）
     */
    @Schema(description = "操作类型", example = "create")
    private String action;

    /**
     * 权限描述
     */
    @Schema(description = "权限描述", example = "创建用户权限")
    private String description;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间", example = "2025-05-20T12:00:00")
    private LocalDateTime createTime;
}